import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
	state:{
		uploadImg:'no',
		refreshFlag:"",
		logLength:0
	},
	getters: {
	     getLogLength: state => state.logLength
	 },
	mutations:{
		setRefresh(state,obj){
			state.refreshFlag = obj.flag
		},
		setLogLength(state,val){
			console.log(val)
			state.logLength =val
		}
	},

})
export default store